package com.zhou.ui;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.zhou.server.WifiHelper;
import com.zhou.widget.R;

public class Main extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.example_appwidget);
        TextView ipText = (TextView) findViewById(R.id.ip_text);
        TextView nameText = (TextView) findViewById(R.id.name_text);

        nameText.setText(WifiHelper.getWifiName(this));
        ipText.setText(WifiHelper.wifiIpAddress(this));

        findViewById(R.id.btn_update).setOnClickListener(new View.OnClickListener()
        {

            @Override
            public void onClick(View v)
            {

            }
        });
    }

}
